/***
 * 封装bootstrap组件，警告框
 * @status 状态，true/false
 * @msg 警告框提示的信息
 */

export function MyAlert(status,msg){
  let alertStyle = status ? 'alert-success' : 'alert-danger'
  const alert = document.querySelector('.alert')
  alert.style.display = "block"
  alert.innerHTML = msg

  alert.classList.add(alertStyle)

  setTimeout(()=>{
      alert.style.display = 'none'
  },1500)
}